package com.distribution.system.manager.zoningcode;

import com.distribution.system.mapper.CmccDaCodeMapper;
import org.springframework.stereotype.Service;

/**
 * @author Liping Huo
 * @date 2023/5/23 1:12
 */
@Service
public class ZoningCodeMateManager {
    final
    DefaultMateZoningCode defaultMateZoningCode;
    CmccDaCodeMapper cmccDaCodeMapper;

    public ZoningCodeMateManager(DefaultMateZoningCode defaultMateZoningCode, CmccDaCodeMapper cmccDaCodeMapper) {
        this.defaultMateZoningCode = defaultMateZoningCode;
        this.cmccDaCodeMapper = cmccDaCodeMapper;
    }


    public MateZoningCode getDefaultMateZoningCode() {
        return defaultMateZoningCode;
    }

    //TODO  未实现管理器

    /**
     * 根据区划代码获取区划名称
     */
    public String getZoningByNameCode(String zoningCode){
        return  cmccDaCodeMapper.getNameByZoningCode(zoningCode);
    }
}
